package org.example.jufp.modle;

import lombok.Data;

@Data
public class Result<T> {
    private T data;
    private Integer code;

    public static <T> Result<T> retBody(T body, Integer code) {
        Result<T> ret = new Result<>();
        ret.setData(body);
        ret.setCode(code);
        return ret;
    }


}
